package com.ruoyi.project.bajiaostar.tUserAmountDetail.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 账户流水明细对象 t_user_amount_detail
 * 
 * @author wangwu
 * @date 2024-05-23
 */
public class TUserAmountDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 明细名称 */
    @Excel(name = "明细名称")
    private String detailName;

    /** 明细备注 */
    @Excel(name = "明细备注")
    private String detailRemark;

    /** 明细类型：0 入账 1 平账 */
    @Excel(name = "明细类型：0 入账 1 平账")
    private Integer detailType;

    /** 售价/付款金额 */
    @Excel(name = "售价/付款金额")
    private Integer price;

    /** 数量/平账金额 */
    @Excel(name = "数量/平账金额")
    private Integer quantity;

    /** 待支付金额 */
    @Excel(name = "待支付金额/总待支付金额")
    private Integer stayPayAmount;

    /** 收益/剩余待支付金额 */
    @Excel(name = "收益/剩余待支付金额")
    private Integer surplusAmount;

    /** 订单id*/
    @Excel(name = "订单id")
    private Long orderId;

    /** 订单编号*/
    @Excel(name = "订单编号")
    private String orderNo;

    /** 赠送金额（平账专用）*/
    @Excel(name = "赠送金额（平账专用）")
    private Integer giveAmount;

    /** 平账金额（平账专用）*/
    @Excel(name = "平账金额（平账专用）")
    private Integer flatPayAmount;
    @Excel(name = "备注")
    private String remark;
    @Excel(name = "商品id")
    private Long goodId;

    //开始时间
    private String startTime;
    //结束时间
    private String endTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setDetailName(String detailName) 
    {
        this.detailName = detailName;
    }

    public String getDetailName() 
    {
        return detailName;
    }
    public void setDetailRemark(String detailRemark) 
    {
        this.detailRemark = detailRemark;
    }

    public String getDetailRemark() 
    {
        return detailRemark;
    }
    public void setDetailType(Integer detailType) 
    {
        this.detailType = detailType;
    }

    public Integer getDetailType() 
    {
        return detailType;
    }
    public void setPrice(Integer price)
    {
        this.price = price;
    }

    public Integer getPrice()
    {
        return price;
    }
    public void setQuantity(Integer quantity)
    {
        this.quantity = quantity;
    }

    public Integer getQuantity()
    {
        return quantity;
    }
    public void setStayPayAmount(Integer stayPayAmount)
    {
        this.stayPayAmount = stayPayAmount;
    }

    public Integer getStayPayAmount()
    {
        return stayPayAmount;
    }
    public void setSurplusAmount(Integer surplusAmount)
    {
        this.surplusAmount = surplusAmount;
    }

    public Integer getSurplusAmount()
    {
        return surplusAmount;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public Integer getGiveAmount() {
        return giveAmount;
    }

    public void setGiveAmount(Integer giveAmount) {
        this.giveAmount = giveAmount;
    }

    public Integer getFlatPayAmount() {
        return flatPayAmount;
    }

    public void setFlatPayAmount(Integer flatPayAmount) {
        this.flatPayAmount = flatPayAmount;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Long getGoodId() {
        return goodId;
    }

    public void setGoodId(Long goodId) {
        this.goodId = goodId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("detailName", getDetailName())
            .append("detailRemark", getDetailRemark())
            .append("detailType", getDetailType())
            .append("price", getPrice())
            .append("quantity", getQuantity())
            .append("stayPayAmount", getStayPayAmount())
            .append("surplusAmount", getSurplusAmount())
            .append("createTime", getCreateTime())
            .toString();
    }
}
